<!DOCTYPE html>

<html>
<head>
	<meta charset="utf-8" />
	<link rel="stylesheet" type="text/css" href="style.css" />
	<title>Accueil</title>

</head>
<body>

	<?php
		session_start();
	?>

	<div class="top-menu">
		<ul>
			<li><a href="index.php" >Accueil</a></li>
			<li><a href="#">Catégories</a></li>
			<li><a href="#">Link 3</a></li>
			<li><a href="#">Link 4</a></li>
			<li><a href="#">Link 5</a></li>
		</ul>
		
		<?php
		if (!isset($_SESSION) || !isset($_SESSION['connected']) || !$_SESSION['connected'] == true)
		{
			?>
		<div class="login-box">
		<form action="connexion.php" method="post">
			Connexion :<input type="text" name="login" placeholder="Login" />
			<input type="text" name="mdp" placeholder="Password" />
			<input type="submit" value="OK">
		</form>
		</div>
		<?php
		}
		else
		{
			?>
			<div class="login-box">Vous etes connecté en tant que <?php
			if (isset($_SESSION) && isset($_SESSION["login"]))
				echo '<div class="login-name">' . $_SESSION["login"] . '</div>';
			?>
			<a href="sdestr.php">Déconnexion</a>
			</div>
			<?php
		}
		?>
		<br />
	</div>
	
	<!-- BEGIN TOPICBOX BLOCK********************************************************************************************************************** -->
<div class="topicbox">
</div>
	<!-- END TOPICBOX BLOCK********************************************************************************************************************** -->
	<footer>
			<p>
				[/!\FIXME/!\	INSERT_PHP_FOR_NB_PAGES]
			</p>
	</footer>

</body>

</html>